//
//  UserModel.h
//  FinancialProduct
//
//  Created by Stella on 2017/8/31.
//  Copyright © 2017年 maq. All rights reserved.
//
#import "MJExtension.h"
#import <Foundation/Foundation.h>

@interface UserModel : NSObject
/***
 data =     (
 {
 Accountstatus = 2;//1 正式客户  2 临时客户
 CustomerID = 0;
 Result = 1;
 StatusLogo = 0;
 }
 );
 msg = "请求成功";
 state = true;
 ***/
@property (nonatomic,copy) NSString *Phone;

@property (nonatomic,copy) NSString *CustomerName;

@property (nonatomic,copy) NSString *Accountstatus;//1 正式客户  2 临时客户
@property (nonatomic,copy) NSString *CustomerID;

+ (instancetype)userInfo:(NSDictionary *)dict;

/**储存用户信息**/
-(void)save;
/**获取用户模型**/
+(UserModel *)getUser;

+ (BOOL)isLogin;
/**设置用户是否登录  YES为登录  NO为没有登录**/
+(void)setUserLogin:(BOOL)login;

@end
